package com.woniuxy.company5.controller;
import com.woniuxy.company5.entity.MacInterface;
import com.woniuxy.company5.service.MacInterfaceService;
import com.woniuxy.company5.util.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/macInterface")
public class MacInterfaceController {
    @Resource
    private MacInterfaceService macInterfaceService;
    @GetMapping("")
    public Result selAll(){
        List<MacInterface> list = macInterfaceService.selAll();
        return Result.ok().data("interfaceList",list);
    }
}
